﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GUITest
{
    public partial class RunningContestWithTabs : Form
    {
        public RunningContestWithTabs()
        {
            InitializeComponent();
        }

        private void DiveQueuelistBox_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            EditDiveinQueue.Visible = true;
            DiveQueue.Visible = false;
        }

        private void EditDiveinQueueSaveButton_Click(object sender, EventArgs e)
        {
            EditDiveinQueue.Visible = false;
            DiveQueue.Visible = true;
        }

        private void EditDiveinHistorySaveButton_Click(object sender, EventArgs e)
        {
            EditDiveinHistory.Visible = false;
            DiveHistory.Visible = true;
        }

        private void HistorytreeView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            EditDiveinHistory.Visible = true;
            DiveHistory.Visible = false;
        }

        private void EditDiveinQueueDiscardButton_Click(object sender, EventArgs e)
        {
            EditDiveinQueue.Visible = false;
            DiveQueue.Visible = true;
        }

        private void EditDiveinHistoryDiscardButton_Click(object sender, EventArgs e)
        {
            EditDiveinHistory.Visible = false;
            DiveHistory.Visible = true;
        }

    }
}
